@import "./color.less";

body {
    margin: 0;
    padding: 0;
    // font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    //     "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "sans-serif";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
  
code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

//自定义滚动条样式
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    display: block;
}
::-webkit-scrollbar-button {
    display: none;
}
::-webkit-scrollbar-thumb{
    border-radius: 1em;
    background-color: rgba(50,50,50,.3);
}
::-webkit-scrollbar-track{
    border-radius: 1em;
    // background-color: rgba(50,50,50,.1);
    background-color: transparent;
}
  

// 样式定义变量
@App: {
    height: 100%;
    background-color: #fff;
    display: flex;
};
@LeftBar: {
    width: 300px;
    min-width: 300px;
    height: 100%;
    background-color: #fbfbfb;
    display: flex;
    flex-direction: column;
    border-right: 1px solid @borderColor;
};
@RightContent: {
    flex: 1;
    height: 100%;
    min-width: 520px;
}
@ScrollContent: {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
}
@Detail: {
    height: 100%;
    display: flex;
    flex-direction: column;
};
@DetailHeader: {
    .dragBar;
    height: 53px;
    border-bottom: 1px solid @borderColor;
}
  
/* electron可拖拽区域 */
.dragBar {
    -webkit-app-region: drag;
}
.nodrag {
    -webkit-app-region: no-drag
}

.require {
    position: relative;
    &:after {
        position: absolute;
        content: '*';
        font-size: 22px;
        line-height: 24px;
        color: @warnColor;
        left: -10px;
        top: 0px;
    }
}

.dot {
    display: inline-block; 
    height: 1em;
    line-height: 1em;
    text-align: left;
    vertical-align: -.25em;
    overflow: hidden;
    &::before {
        display: block;
        content: '...\A..\A.';
        white-space: pre-wrap;
        animation: dot 2s infinite step-start both;
    }
}

@keyframes dot {
    33% { transform: translateY(-2em); }
    66% { transform: translateY(-1em); }
}


/* 重置antd的默认样式 */
  
.customizeWrapModal .ant-modal-body{
    padding: 0 !important
}

  
  